<?php

class Adept_Json {
    
    const TYPE_ARRAY  = 1;
    const TYPE_OBJECT = 0;    
    
    static function decode($encoded, $decodeType = self::TYPE_ARRAY) 
    {
        if (function_exists('json_decode')) {
            return json_decode($encoded, $decodeType == self::TYPE_ARRAY);    
        }
        
        
    }
    
    static function encode()
    {
    	
    }
    
}